<!--发送短信列表-->



<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">

    <div class="row ">
        <div class="col-sm-2">
            <input type="text" class="form-control"  ng-model="product_id" placeholder="产品编号"> 
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="supplier_product_name" placeholder="供应商名称">
        </div>
      <div class="col-sm-2">
            <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.lable" is-open="start.opened" readonly ng-click="open(start)" placeholder="出发团期开始时间"/>
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date1.lable" is-open="end.opened" readonly ng-click="open(end)" placeholder="出发团期结束时间"/>
        </div>
        <div class="col-sm-2">
            <ui-select ng-model="a.send_state" theme="bootstrap" >
                <ui-select-match placeholder="发送状态">
                    {{$select.selected.name}}
                </ui-select-match>
                <ui-select-choices repeat="item.value as item in fasong | filter: $select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
      
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="product_name" placeholder="产品名称"> 
        </div>
         
        
     </div>
        
         
    

    <div class="row mt10">
        <div class="col-sm-2">
            
        </div>
        <div class="col-sm-2">
          
        </div>
        <div class="col-sm-2">
        
             
        </div>
        <div class="col-sm-2">
           
        </div>

        <div class="col-sm-2 col-sm-offset-2">
            <button class="btn btn-block btn-info" ng-click="search()">搜索</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->

<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered" style="display: table; width: 100%;table-layout:fixed;">
            <thead>
                <tr>
     
                    <th style="width: 20%;text-align:center;">产品编号</th>
                    <th style="width: 20%;text-align:center;">产品名称</th>
                    <th style="width: 20%;text-align:center;">供应商产品名称</th>
                    <th style="width: 10%;text-align:center;">出发团期</th>
                    <th style="width: 10%;text-align:center;">返回团期</th>
                    <th style="width: 10%;text-align:center;">发送状态</th>
                    <th style="width: 10%;text-align:center;">操作</th>

                  
                   

                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="info in a">
                    <td  style="width: 22% ;text-align:center;">{{info.product_id}}</td>
                    <td  style="width: 20% ;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;cursor:pointer;" title="{{info.product_name}}">{{info.product_name}}</div></td>
                    <td  style="width: 20%;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;cursor:pointer;" title="{{info.supplier_product_name}}">{{info.supplier_product_name}}</div></td>
                    <td  style="width: 10% ;text-align:center;">{{info.tour_date}}</td>
                    <td  style="width: 10%;text-align:center;overflow-x:hidden;overflow-y:hidden;">{{info.back_tour_date}}</td>
                    <td  style="width: 8%;text-align:center;overflow-x:hidden;overflow-y:hidden;">{{info.send_state_name}}</td>
                 
       
                  
                    <td class="text-center" style="vertical-align: middle">
                        <div ng-if="info.smsshow">
                           <div class="btn-group" dropdown="">
                                <button type="button" class="btn btn-primary btn-xs" dropdown-toggle="" ng-disabled="disabled" aria-haspopup="true" aria-expanded="false" style="width: 60px">
                                    操作 <span class="caret"></span>  
                                </button>
                                <ul class="dropdown-menu" role="menu" >
                                    <li>
                                        <a ng-click="reject($index)" >导游信息</a>
                                    </li>
                                    <li>
                                        <a ng-click="touristMessage($index)" >人员信息</a>
                                    </li>
                                    <li>
                                        <a ng-click="gomessage($index)" >发送短信</a>
                                    </li>
                                    <li>
                                        <a ng-click="gotwomessage($index)" >再次发送</a>
                                    </li>
                                </ul>
                        </div>
                       </div> 
                        <div ng-if="info.smsnoshow">
                            <div class="btn-group" dropdown="">
                                <button type="button" class="btn btn-primary btn-xs" dropdown-toggle="" ng-disabled="disabled" aria-haspopup="true" aria-expanded="false" style="width: 60px">
                                    操作 <span class="caret"></span>  
                                </button>
                                <ul class="dropdown-menu" role="menu" >
                                    <li>
                                        <a ng-click="reject($index)" >导游信息</a>
                                    </li>
                                    <li>
                                        <a ng-click="touristMessage($index)" >人员信息</a>
                                    </li>
                                </ul>
                        </div>
                        </div> 
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="text-right">
            <pagination 
        total-items="totalItems" 
        ng-model="currentPage" 
        ng-change="pageChanged()"
        previous-text="上一页" 
        next-text="下一页" 
        first-text="首页" 
        last-text="尾页" 
        max-size="5" 
        boundary-links="true"
        rotate="false"
        
        items-per-page="itemsPerPage"
        class="m-t-none m-b"></pagination>
        </div>
    </div>
</div>

</div>
